#include<iostream>
#include<string>
#include<vector>
class Solution{public:int find_max(std::vector<int>& nums){int num = nums[0];for(auto e:nums)if(e>num)num = e;return num;}};;

#ifndef COMPILER_ONLINE

#include "header.cpp"

#endif



void Test1() 
{
    std::vector<int> nums={1,4,7,2,8,9,211};
    int ans = Solution().find_max(nums);
    if(ans==211)
    {
        std::cout<<"通过测试用例1"<<std::endl;
    }
    else
    {
        std::cout<<"没有通过用例1"<<std::endl;
    }
}

void Test2()
{
    std::vector<int> nums={1,4,7,2,8,9,211,21,3124,24,412,124,12,4,12,412,4,12,4,124,12,4,12,4,21412,5346,4,523343242};
    int ans = Solution().find_max(nums);
    if(ans==523343242)
    {
        std::cout<<"通过测试用例2"<<std::endl;
    }
    else
    {
        std::cout<<"没有通过用例2"<<std::endl;
    }
}

int main()
{
    Test1();
    Test2();
}